﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MOTA_WP
{
    public class ListBoxTemplateSelector : DataTemplateSelector
    {
        public DataTemplate StoreService
        {
            get;
            set;
        }

        public DataTemplate BusService
        {
            get;
            set;
        }

        public DataTemplate ParkingService
        {
            get;
            set;
        }

        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            /*
            Data foodItem = item as Data;
            if (foodItem != null)
            {
                if (foodItem.Type == "Healthy")
                {
                    return Healthy;
                }
                else if (foodItem.Type == "NotDetermined")
                {
                    return NotDetermined;
                }
                else
                {
                    return UnHealthy;
                }
            }
            */
            return base.SelectTemplate(item, container);
        }
    }
}
